package com.westvalley.tools.excel.bean;

import java.util.List;

import com.google.common.collect.Lists;

/**
 * 导入基础模型
 * @author mos
 *
 */
public class BeanModel {
	private int index;										//行号
	private boolean verifyStatus = true;					//验证状态
	private List<String> errorList = Lists.newArrayList();	//错误信息
	
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public boolean isVerifyStatus() {
		if(errorList.size()>0)
			verifyStatus = false;
		return verifyStatus;
	}
	public void setVerifyStatus(boolean verifyStatus) {
		this.verifyStatus = verifyStatus;
	}
	public String getErrorList() {
		String errorMsg = "";
		for(String text : errorList){
			errorMsg += text+";<br/>";
		}
		return errorMsg;
	}
	public void setErrorList(String errorMsg) {
		this.errorList.add(errorMsg);
	}

}
